<?php

namespace App\Models;

class AgentXiamenBankAccount extends XiamenBank
{
    protected $table = 'agent_xiamen_bank_account';

    protected $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'register_callback_snapshot' => 'array',
    ];

    public function agent()
    {
        return $this->belongsTo(Agent::class);
    }

    public function cards()
    {
        return $this->hasMany(AgentXiamenBankAccountCards::class, 'axba_id');
    }
}
